<?php

namespace App\Models;

use App\Models\Traits\Btn;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as AuthUser;
use Illuminate\Database\Eloquent\SoftDeletes;

class User extends AuthUser
{
    use HasFactory, SoftDeletes,Btn;

    protected $guarded = [];

    public function role()
    {
        return $this->hasOne(Role::class,'id','role_id');
    }
}
